package com.unieagle.exam.model;

import java.util.List;

public class UserInfoResult extends BaseResult {
    private long id;
    private String name;
    private String gender;
    private String phone;
    private String email;
    private String created_at;
    private String updated_at;
    private String certificate;
    private String access_token;
    private CertificateImage certificate_image_front;
    private CertificateImage certificate_image_back;
    private CertificateImage avatar;
    private String activation_requested_at;
    private String activation_expired_at;
	private String activation_status;
    private int trail_count;
    private List<Integer> selected_subjects;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getCreated_at() {
        return created_at;
    }

    public void setCreated_at(String created_at) {
        this.created_at = created_at;
    }

    public String getUpdated_at() {
        return updated_at;
    }

    public void setUpdated_at(String updated_at) {
        this.updated_at = updated_at;
    }

    public String getCertificate() {
        return certificate;
    }

    public void setCertificate(String certificate) {
        this.certificate = certificate;
    }

    public String getAccess_token() {
        return access_token;
    }

    public void setAccess_token(String access_token) {
        this.access_token = access_token;
    }

    public String getCertificate_image_front_url() {
        return certificate_image_front == null ? null : certificate_image_front.url;
    }

    public void setCertificate_image_front_url(String  url) {
        if(certificate_image_front == null){
            certificate_image_front = new CertificateImage();
        }
        this.certificate_image_front.url = url;
    }

    public String getCertificate_image_back_url() {
        return certificate_image_back == null? null : certificate_image_back.url;
    }

    public void setCertificate_image_back(String url) {
        if(certificate_image_back == null){
            certificate_image_back = new CertificateImage();
        }
        this.certificate_image_back.url = url;
    }

    public String getCertificate_avatar_url() {
        return avatar == null ? null:avatar.thumb.url;
    }

    public void setCertificate_avatar_url(String avatar_url) {
        if(avatar == null){
            avatar = new CertificateImage();
        }
        this.avatar.thumb.url = avatar_url;
    }

    public String getActivation_requested_at() {
        return activation_requested_at;
    }

    public void setActivation_requested_at(String activation_requested_at) {
        this.activation_requested_at = activation_requested_at;
    }

    public String getActivation_status() {
        return activation_status;
    }

    public void setActivation_status(String activation_status) {
        this.activation_status = activation_status;
    }

    public int getTrail_count() {
        return trail_count;
    }

    public void setTrail_count(int trail_count) {
        this.trail_count = trail_count;
    }

    public List<Integer> getSelected_subjects() {
        return selected_subjects;
    }

    public void setSelected_subjects(List<Integer> selected_subjects) {
        this.selected_subjects = selected_subjects;
    }
    
    public String getActivation_expired_at() {
		return activation_expired_at;
	}

	public void setActivation_expired_at(String activation_expired_at) {
		this.activation_expired_at = activation_expired_at;
	}

    private static class CertificateImage {
        private String url;
        private Thumb thumb;
    }

    private static class Thumb{
        private String url;
    }
}
